package com.tuanzi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.tuanzi.dao")
public class HuapenApplication extends SpringBootServletInitializer {

    /**
     * 单体项目
     * springboot + mybatis + thymeleaf
     *
     * 项目功能
     *      1.用户登录
     *      2.添加花盆，删除花盆
     *      3.对花盆进行可视化监控
     *      4.远程发送指令，操作花盆 (可能实现不了)
     *
     * 思路：花盆和网站公用一个数据库
     *      花盆通过固定时间轮询上传数据
     */

    public static void main(String[] args) {
        SpringApplication.run(HuapenApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(HuapenApplication.class);
    }
}
